package com.offcn.singleton;

public class DoubleSuoSingleton {

    private static volatile DoubleSuoSingleton instance;

    private DoubleSuoSingleton(){}

    public static DoubleSuoSingleton getInstance(){
        if(instance == null){
            synchronized (DoubleSuoSingleton.class){
                if(instance == null){
                    instance = new DoubleSuoSingleton();
                }
            }
        }
        return instance;
    }
}
